function toast (title,icon,duration = 1500) {
    uni.showToast({
      title,
      icon,
      duration
    })
}

toast.err = function (title,duration=3000) {
  uni.showToast({
    title,
    icon:"error",
    duration
  })
}

export default toast